//运营位配置
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//创建
export function positionConfigCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/create`,
    method: "post",
    data
  });
}
//修改
export function positionConfigUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/update`,
    method: "post",
    data
  });
}
//删除
export function positionConfigDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/delete`,
    method: "post",
    data
  });
}
//详情
export function positionConfigDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/detail`,
    method: "get",
    params
  });
}
//分页
export function positionConfigPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/page`,
    method: "get",
    params
  });
}
//list
export function positionConfigList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/list`,
    method: "get",
    params
  });
}
//修改状态
export function positionConfigChangeStatus(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/changeStatus`,
    method: "post",
    data
  });
}
//验证优惠时间段
export function checkDuplicateSpecialOffer(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/checkDuplicateSpecialOffer`,
    method: "post",
    data
  });
}
//修改标签
export function positionConfigSetTag(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/positionConfig/positionConfigSetTag`,
    method: "post",
    data
  });
}
